import { IsNotEmpty } from 'class-validator'

export class RedisDto {
  @IsNotEmpty({ message: 'key不能为空' })
  key: string

  @IsNotEmpty({ message: 'value不能为空' })
  value: string | number

  ttl?: number
}
